package com.qianfeng.client_7001.filter;

import com.netflix.hystrix.strategy.concurrency.HystrixRequestContext;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

/**
 * author: 田晋宇
 * datetime:2021/10/26 14:24
 * email:853796359@qq.com
 */
@WebFilter("/*")
public class CacheFilter implements Filter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {

        HystrixRequestContext.initializeContext();//初始化Hystrix 上下文
    }
}
